"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    /**
     * Add seed commands here.
     *
     * Example:
     * await queryInterface.bulkInsert('People', [{
     *   name: 'John Doe',
     *   isBetaMember: false
     * }], {});
     */

    await queryInterface.bulkInsert("Menus", [
      {
        id: 973647872,
        menuType: 0,
        parentId: 1,
        title: "代码生成",
        name: "Generator",
        path: "/system/generator/index",
        rank: 99,
        icon: "ri:code-box-fill",
        frameLoading: 1,
        keepAlive: 0,
        hiddenTag: 0,
        fixedTag: 0,
        showLink: 1,
        showParent: 1,
        createdAt: new Date(),
        updatedAt: new Date(),
      },
    ]);
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  },
};
